import React from 'react';
import {Link,IndexLink} from 'react-router';

export default React.createClass({
  render(){
    if(this.props.to.indexOf('to_index')>0){
      return(
        <IndexLink {...this.props} activeClassName='active'/>
      )
    }
    else{
      return(
        <Link {...this.props} activeClassName='active'/>
      )
    }

  }
})
